<?php
  session_start();
  if(!isSet($_SESSION["kasutajanimi"])){
    header("Location: sisselogimine.php");
    exit();
  }
  if($_SESSION["roll"]!="haldur"){
    header("Location: sisselogimine.php");
    exit();  
  }
?>